package com.clear.builder;

import lombok.extern.slf4j.Slf4j;


@Slf4j
public class Main {
    public static void main(String[] args) {
        HtmlDocumentBuilder articleBuilder  = new ArticleHtmlDocumentBuilder();
        // 创建指挥者，并将要创造的产品的 具体创造者 传入
        HtmlDirector director = new HtmlDirector(articleBuilder);
        // 调用制造者的创建方法，创建出产品
        director.constructDocument();

        HtmlDocument document = director.getDocument();
        log.info("document:{}",document);
    }
}
